
public class demo {
	public static void main(String[] args){
		char s1 = new String("Felight Rocks").charAt(10);
		System.out.println("char at   "+s1);
		String s2 = new String("Felight Rocks").concat("so does the students");
		System.out.println("concatinated  "+s2);
		boolean s3 = new String("Felight Rocks").equalsIgnoreCase("Felight Rocks");
		System.out.println("equals:  "+s3);
		int s4 = new String("Felight Rocks").length();
		System.out.println("length "+s4);
		String s5 = new String("Felight Rocks").replace('F','V');
		System.out.println("replaced  "+s5);
		String s6 = new String("Felight Rocks").substring(2,7);
		System.out.println("substring "+s6);
		String s7 = new String("Felight Rocks").toLowerCase();
		System.out.println("lower : "+s7);
		String s8 = new String("Felight Rocks").toString();
		System.out.println("string:  "+s8);
		String s9= new String("Felight Rocks").toUpperCase();
		System.out.println("upper "+s9);
		String s10 = new String("Felight Rocks                           ").trim();
		System.out.println("trimmed : "+s10);
	}
}
